#ifndef __MY_JPEG_H__
#define __MY_JPEG_H__


#include <stdio.h>
#include "jpeglib.h"
#include <setjmp.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <linux/input.h> 
#include <sys/mman.h>


//错误信息结构体
struct my_error_mgr {
  struct jpeg_error_mgr pub;    /* "public" fields */

  jmp_buf setjmp_buffer;    /* for return to caller */
};

typedef struct my_error_mgr *my_error_ptr;

METHODDEF(void) my_error_exit (j_common_ptr cinfo);

GLOBAL(int) read_JPEG_file (char * filename,int *lcd_p);

#endif